/*
 * Copyright (C) 2013  Richard Schilling. All rights reserved.
 * contact: coderroadie@gmail.com
 * 
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */

package android.net.quic.enumerations;

/**
 * The available versions of QUIC. Guaranteed that the integer value of the enum
 * will match the version number. When adding a new version to this enum you
 * should add it to kSupportedQuicVersions (if appropriate), and also add a new
 * case to the helper methods QuicVersionToQuicTag, QuicTagToQuicVersion, and
 * QuicVersionToString.
 * 
 * @author Richard Schilling
 */


public enum QuicVersion {
    // Special case to indicate unknown/unsupported QUIC version.
    QUIC_VERSION_UNSUPPORTED(0),

    QUIC_VERSION_9(9),
    QUIC_VERSION_10(10); // Current version.

    public final int versionNumber;

    private QuicVersion(int number) {
        versionNumber = number;
    }
};
